# # Create your models here.
# from django.contrib.auth.models import AbstractUser
# from django.db import models
#
# class Conversation(models.Model):
#     created_at = models.DateTimeField(auto_now_add=True)
#
# class Message(models.Model):
#     conversation = models.ForeignKey(Conversation, on_delete=models.CASCADE)
#     sender = models.CharField(max_length=10)  # 'user' or 'bot'
#     content = models.TextField()
#     timestamp = models.DateTimeField(auto_now_add=True)
#
#
# # 问卷总体数据表
# class QuestionData(models.Model):
#     question_id = models.IntegerField(help_text="问卷id", primary_key=True)
#     # 问卷标题
#     question_title = models.CharField(max_length=100, help_text="问卷标题")
#     # 问卷描述
#     question_text = models.CharField(max_length=500, help_text="问卷描述")
#     # 难度
#     question_difficulty = models.IntegerField(help_text="问卷难度")
#     question_subtitle = models.CharField(max_length=500, help_text="问卷二级标题")
#     # 时间
#     question_time = models.CharField(max_length=100, help_text="问卷填写大概使用时间")
#     created_at = models.DateTimeField(auto_now_add=True, help_text="创建时间")
#     updated_at = models.DateTimeField(auto_now=True, help_text="修改时间")
#
# # 问卷具体选项表
# class Option(models.Model):
#     question_id = models.IntegerField(help_text="问卷id")
#     question_subtitle = models.CharField(max_length=500, help_text="问卷二级标题")
#     # 选项idc
#     option_id = models.IntegerField(help_text="选项id", primary_key=True)
#     # 选项描述
#     option_text = models.CharField(max_length=500, help_text="选项描述")
#     options = models.JSONField(help_text="具体选项（json存储）", default=list)
#     # 选项顺序
#     option_order = models.IntegerField(help_text="选项顺序")
#
# # 用户填写问卷答案表
# class Answer(models.Model):
#     question_id = models.IntegerField(help_text="问卷id")
#     user_id = models.IntegerField(help_text="用户id")
#     question_title = models.CharField(max_length=100, help_text="问卷标题")
#     option_id = models.IntegerField(help_text="选项id")
#     choice_id = models.IntegerField(help_text="选择结果", primary_key=True)
#     created_at = models.DateTimeField(auto_now_add=True)
#
